#include <iostream>
#include <algorithm>
using namespace std;

int n,m,vis[505] = {0};

signed main()
{
    cin>>n>>m;
    for(int i=0;i<n;i++){
        int a;
        cin>>a;
        vis[a]++;
    }
    for(int i=1;i<=500;i++){
        for(int j=i;j<=500;j++){
            if(vis[i]>=2&&i*2==m){
                cout<<i<<" "<<i<<"\n";
                return 0;
            }
            if(vis[i]&&vis[j]&&i+j==m&&i!=j){
                cout<<i<<" "<<j<<"\n";
                return 0;
            }
        }
    }
    cout<<"No Solution\n";
    return 0;
}
